From: Timo Tijhof Date: Tue, 29 Oct 2013 00:30:29 +0000 (+0100) Subject: mediawiki.js: Fix docucumentation breakage X-Git-Tag: 1.31.0-rc.0~18358^2 X-Git-Url: http://git.cyclocoop.org//%22http:/%22.attribut_html%28%24lesurls%5B%24numero%5D%29.%22/%22?a=commitdiff_plain;h=176e3e44a01dc5d5b020f276649123d743458d8f;p=lhc%2Fweb%2Fwiklou.git mediawiki.js: Fix docucumentation breakage * Unformatted code and unclosed tag. Depending on which versions of other libs are installed, this error can occur. Current version (v4.x) in production doesn't require this yet. But local environment with the same version does. And the next version of jsduck (v5.x) will consistently work this way for compliance with Markdown. * Simplified @link while at it to use the cleaner implied link instead like we do elsewhere ({@link} should rarely be used directly). * Add /** @class */ because half the file was no longer indexed as part of mw (instead became part of mw.Message after 4f23099) * Index the private mw#log as log_ instead because it clashes with the public mw#log. This should've clashed in 4f23099, but didn't because the other one was seen as part of mw.Message by the test. Change-Id: Ic5b8c5c743ecdb1509652c3655d83e501f6fa9ee --- diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index acda5d655a..f4ea93f7b6 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -21,6 +21,7 @@ var mw = ( function ( $, undefined ) { * fine. No need for optimization here, which would only result in losing logs. * * @private + * @method log_ * @param {string} msg text for the log entry. * @param {Error} [e] */ @@ -318,6 +319,9 @@ var mw = ( function ( $, undefined ) { } }; + /** + * @class mw + */ return { /* Public Members */ @@ -1460,16 +1464,19 @@ var mw = ( function ( $, undefined ) { * @param {Function|Array} script Function with module code or Array of URLs to * be used as the src attribute of a new `